
package org.springxrsk.modules.students.service.impl;

import org.springxrsk.modules.students.pojo.entity.QyStudentsEntity;
import org.springxrsk.modules.students.pojo.vo.QyStudentsVO;
import org.springxrsk.modules.students.excel.QyStudentsExcel;
import org.springxrsk.modules.students.mapper.QyStudentsMapper;
import org.springxrsk.modules.students.service.IQyStudentsService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 学员管理 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyStudentsServiceImpl extends BaseServiceImpl<QyStudentsMapper, QyStudentsEntity> implements IQyStudentsService {

	@Override
	public IPage<QyStudentsVO> selectQyStudentsPage(IPage<QyStudentsVO> page, QyStudentsVO qyStudents) {
		return page.setRecords(baseMapper.selectQyStudentsPage(page, qyStudents));
	}


	@Override
	public List<QyStudentsExcel> exportQyStudents(Wrapper<QyStudentsEntity> queryWrapper) {
		List<QyStudentsExcel> qyStudentsList = baseMapper.exportQyStudents(queryWrapper);
		//qyStudentsList.forEach(qyStudents -> {
		//	qyStudents.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyStudents.getType()));
		//});
		return qyStudentsList;
	}

}
